package com.students.service;

import com.students.pojo.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.students.pojo.RespBean;
import com.students.pojo.RespPageBean;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author caohanqing
 * @since 2022-04-06
 */
public interface IEmployeeService extends IService<Employee> {

    //获取所有员工(分页)
    RespPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    //获取最大工号
    RespBean maxWorkId();

    //添加员工
    RespBean addEmp(Employee employee);

    //查询员工
    List<Employee> getEmployee(Integer id);

    //获取所有员工套账
    RespPageBean getEmployeeWithSalary(Integer currentPage, Integer size);
}
